﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_MasterPages/MainMasterPage.master"
    AutoEventWireup="true" CodeFile="TestList.aspx.cs" Inherits="TestList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Main_HeaderContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main_MainContentPlaceHolder" runat="Server">
    <div id="background-blue3">

    </div>
    <div class="page">
        <div class="page3">
            <div class="sidebar">
                <a href="../Default.aspx" id="logo">
                    <img id="Img1" runat="server" src="~/App_Themes/Default/images/logo.png" alt="logo" /></a>
                <ul>
                    <li class="home"><a id="default_a" href="~/Default.aspx" runat="server">صفحه اصلی</a></li>
                    <li class="selected projects"><a id="testlist_a" href="~/Guest/TestList.aspx" runat="server">
                        فهرست آزمایشات</a></li>
                    <li class="about"><a id="paper_a" href="~/Guest/Paper.aspx" runat="server">مقالات</a></li>
                    <li class="blog"><a id="gallery_a" href="~/Guest/Gallery.aspx" runat="server">گالری</a></li>
                    <li class="contact"><a id="help_a" href="~/Guest/Help.aspx" runat="server">راهنمای پذیرش</a></li>
                </ul>
            </div>
            <div class="body">
                <div class="content-home">
                    <div align="center">
                        <h3>
                            فهرست آزمایشات</h3>
                    </div>
                    <div style="padding: 20px 20px 200px 20px;text-align:center">
                        <telerik:RadGrid ID="TestRadGrid" runat="server" CellSpacing="0" DataSourceID="TestEntityDataSource"
                            GridLines="None" AllowFilteringByColumn="True" Height="325px" Width="90%" Skin="Windows7"
                            AutoGenerateColumns="False" Font-Names="Tahoma" AllowSorting="True">
                            <SortingSettings SortedAscToolTip="افزایشی" SortedDescToolTip="کاهشی" SortToolTip="برای مرتب سازی انتخاب کنید" />
                            <ClientSettings AllowDragToGroup="True">
                                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                            </ClientSettings>
                            <MasterTableView DataSourceID="TestEntityDataSource" Dir="RTL" DataKeyNames="CategoryItemID">
                                <NoRecordsTemplate>
                                    آزمایشی وجود ندارد
                                </NoRecordsTemplate>
                                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                                <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                    <HeaderStyle Width="20px"></HeaderStyle>
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                    <HeaderStyle Width="20px"></HeaderStyle>
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="CategoryTitle" FilterControlAltText="Filter CategoryTitle column"
                                        HeaderText="عنوان گروه" SortExpression="CategoryTitle" UniqueName="CategoryTitle">
                                        <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                            Width="20%" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="CategoryItemTitle" FilterControlAltText="Filter column column"
                                        HeaderText="عنوان آزمایش" UniqueName="CategoryItemTitle">
                                        <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                            Width="30%" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Description" FilterControlAltText="Filter Description column"
                                        HeaderText="توضیحات" SortExpression="Description" UniqueName="Description">
                                        <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                            Width="50%" />
                                    </telerik:GridBoundColumn>
                                </Columns>
                                <EditFormSettings>
                                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                    </EditColumn>
                                </EditFormSettings>
                            </MasterTableView>
                            <AlternatingItemStyle Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle" />
                            <GroupHeaderItemStyle Font-Names="Tahoma" HorizontalAlign="Center" VerticalAlign="Middle" />
                            <HeaderStyle Font-Names="Tahoma" HorizontalAlign="Center" VerticalAlign="Middle" />
                            <FilterItemStyle Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle" />
                            <ItemStyle Font-Names="Tahoma" />
                            <PagerStyle FirstPageToolTip="صفحه اول" HorizontalAlign="Center" LastPageToolTip="صفحه آخر"
                                NextPagesToolTip="صفحات بعدی" NextPageToolTip="صفحه بعدی" PageSizeLabelText="اندازه صفحه:"
                                PrevPagesToolTip="صفحات قبلی" PrevPageToolTip="صفحه قبلی" VerticalAlign="Middle" />
                            <FilterMenu EnableImageSprites="False" Font-Names="Tahoma">
                                <WebServiceSettings>
                                    <ODataSettings InitialContainerName="">
                                    </ODataSettings>
                                </WebServiceSettings>
                            </FilterMenu>
                            <HeaderContextMenu >
                                <WebServiceSettings>
                                    <ODataSettings InitialContainerName="">
                                    </ODataSettings>
                                </WebServiceSettings>
                            </HeaderContextMenu>
                        </telerik:RadGrid>
                    </div>
                </div>
                <div class="footer">
                    <p>
                        &#169; 2023 Delta System Anahita
                    </p>
                    <ul>
                        <li><a id="A1" href="~/Guest/AboutUs.aspx" runat="server">تماس با ما</a> </li>
                        <li><a id="A2" href="~/Guest/Help.aspx" runat="server">راهنمای پذیرش</a> </li>
                        <li><a id="A3" href="~/Guest/Gallery.aspx" runat="server">گالری</a> </li>
                        <li><a id="A4" href="~/Guest/Paper.aspx" runat="server">مقالات</a> </li>
                        <li><a id="A5" href="~/Guest/TestList.aspx" runat="server">فهرست آزمایشات</a> </li>
                        <li><a id="A6" href="~/Default.aspx" runat="server">صفحه اصلی</a> </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <asp:EntityDataSource ID="TestEntityDataSource" runat="server" ConnectionString="name=DefaultEntityConnection"
        DefaultContainerName="DefaultEntityConnection" CommandText="SELECT T2.CategoryTitle AS CategoryTitle, 
         T1.CategoryItemTitle AS CategoryItemTitle ,
         T1.CategoryItemID AS CategoryItemID , 
         T1.Description AS Description  
         FROM DefaultEntityConnection.CategoryItems AS T1
         INNER JOIN DefaultEntityConnection.Categories  AS T2 On T1.CategoryItemID = T2.CategoryID"
        EnableFlattening="False" AutoGenerateOrderByClause="true">
    </asp:EntityDataSource>
</asp:Content>
